// memuList内部children接口
// interface Insideobj {
//   title: string;
//   key: string;
//   icon: string;
//   isPublic?: Boolean;
//   children?: Array<obj>;
// }

// memuList接口

const menuList: Array<any> = [
  {
    title: "平台权限", //菜单标题名称
    key: "all", //对应的path
    children: [
      {
        title: "首页", //菜单标题名称
        key: "/admin/home", //对应的path
      },
      {
        title: "商品",
        key: "/admin/products",

        children: [
          {
            title: "品类管理",
            key: "/admin/category",
          },
          {
            title: "商品管理",
            key: "/admin/product",
          },
        ],
      },

      {
        title: "用户管理",
        key: "/admin/user",
      },
      {
        title: "角色管理",
        key: "/admin/role",
      },
      {
        title: "图形图表",
        key: "/admin/charts",

        children: [
          {
            title: "柱形图",
            key: "/admin/charts/bar",
          },
          {
            title: "折线图",
            key: "/admin/charts/line",
          },
          {
            title: "饼图",
            key: "/admin/charts/pie",
          },
        ],
      },
    ],
  },
];
export default menuList;
